//
//  AppDelegate.swift
//  weibo
//
//  Created by 陈经纬 on 16/7/15.
//  Copyright © 2016年 陈经纬. All rights reserved.
//

import UIKit


@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

//        //创建window
//        window = UIWindow(frame:UIScreen.mainScreen().bounds)
//        window?.backgroundColor = UIColor.redColor()
//        //设置rootvc
//        window?.rootViewController = MainTableViewController()
//        
//        //显示window
//        window?.makeKeyAndVisible()
        
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        
        return true
    }
}

func JWLog<T>(message: T, fileName: String = #file, methodName: String = #function, lineNumber: Int = #line)
{
    #if DEBUG
        //    print("\((fileName as NSString).pathComponents.last!).\(methodName)[\(lineNumber)]:\(message)")
        print("\(methodName)[\(lineNumber)]:\(message)")
    #endif
}

